@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
TransportFeePay Management ::
@parent
@stop

@section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">TransportFeePay list</li>
@stop

@section('content.main')

<p>{{ link_to_route('car_balance.transport_fee_pay.create', 'Add new TransportFeePay', null, array('class' => 'btn btn-info')) }}</p>


{{  $transport_fee_pays->links() }}

<table class="table table-bordered table-striped table-hover">
    <thead>
    <tr>
                <th>Id</th>
                <th>Fee</th>
                        <th>Car Auction</th>                <th>Vanning Company Branch</th>
        <th class="span2">Actions</th>
    </tr>
    </thead>
    <tbody>
    @foreach ($transport_fee_pays as $transport_fee_pay)
    <tr>
        <td>{{  link_to_route('car_balance.transport_fee_pay.show', $transport_fee_pay->car_auction_id, array($transport_fee_pay->car_auction_id), array()) }}</td>
        <td>{{  $transport_fee_pay->fee }}</td>
        <td>{{  $transport_fee_pay->auction ? link_to_route('car_balance.car_auction.show', $transport_fee_pay->auction->name, array('id' => $transport_fee_pay->auction->id), array()) : 'NULL' }}</td>
        <td>{{  $transport_fee_pay->vanningCompanyBranch ? link_to_route('car_balance.vanning_company_branch.show', $transport_fee_pay->vanningCompanyBranch->name, array('id' => $transport_fee_pay->vanningCompanyBranch->id), array()) : 'NULL' }}</td>
        <td>
            <a href="{{  route('car_balance.transport_fee_pay.edit', $transport_fee_pay->car_auction_id) }}" class="btn btn-mini">Edit</a>
            <a href="{{  route('car_balance.transport_fee_pay.delete', $transport_fee_pay->car_auction_id) }}" class="btn btn-mini btn-danger">Delete</a>
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

{{  $transport_fee_pays->links() }}

@stop